package com.sunday.common.mybatis.plus.study.e7_TenantID;

import com.sunday.common.leaf.core.IdWorker;
import lombok.extern.slf4j.Slf4j;

/**
 * TODO
 *
 * @author sunday
 * @since 2024/11/4
 */
@Slf4j
public class TenantContextHolder {

    public static Long getCurrentTenantId() {
        long currentTenant = IdWorker.getId();
        log.info("currentTenant === {}", currentTenant);
        return currentTenant;
    }

}
